Book Contents

Example: Use Interlocked push buttons

In this example, the Interlocked push buttons control the position of a guide that directs bottles from the main conveyor to one of three secondary conveyors. Only one secondary conveyor can be operational at any moment.

  1. Create an Interlocked push button with back color and border color for State 0 as red, and State 1 as green. Make the State 0 and State 1 captions "Conveyor 1." Assign a tag to the Value connection.
  2. Copy the Interlocked push button and paste two additional copies of it.
  3. For the first copy, change the button value property to 1 and the State 0 and State 1 captions to "Conveyor 2."
  4. For the second copy, change the value property to 2 and the State 0 and State 1 captions to "Conveyor 3."

When the operator presses one of these three Interlocked push buttons the button’s value property is written to the Value connection. The data source registers the value change and the appropriate conveyor becomes the active conveyor.

See also

Causes of run-time errors for the Interlocked push button

Create Interlocked push buttons

Configure the Interlocked push button

Set up states for the Interlocked push button

Se up controls for the Interlocked push button

How the Interlocked push button works at run time